﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Gui.BaseForm
{
    public partial class BaseFormComposite : BaseForm
    {
        public BaseFormComposite()
        {
            InitializeComponent();
        }

        /// <summary>
        /// This stops the form flicker
        /// </summary>
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
                //cp.Style |= 0xA0000; // Turn on WS_SYSMENU and Minimize (but it fucks the resize)
                return cp;
            }
        }
    }
}
